<%--

    Copyright (C) 2008-2009 Cristian Olaru <colaru@gmail.com>
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
            http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

--%>
<%@ include file="/common/taglibs.jsp"%>
<cache:flush/>
<head>
    <title><fmt:bundle basename="ApplicationResources"><fmt:message key="articleList.title"/></fmt:bundle></title>
    <meta name="heading" content="<fmt:bundle basename="ApplicationResources"><fmt:message key='articleList.heading'/></fmt:bundle>"/>
    <meta name="menu" content="ArticleMenu"/>
</head>

<div id="left">

	<fmt:bundle basename="ApplicationResources"><fmt:message key="article.list.title"/></fmt:bundle>
	<fmt:bundle basename="ApplicationResources"><fmt:message key="article.list.body"/></fmt:bundle>

	<display:table name="articles" class="table" requestURI="" sort="list" defaultsort="3" defaultorder="descending" decorator="com.integrationpath.mengine.webapp.decorator.ArticleDecorator" id="articleList" export="true" pagesize="5">
	
	    <display:column property="title" sortable="true" titleKey="article.title"/>
	    <display:column property="overview" href="editArticleContent.html" media="html" paramId="id" paramProperty="id" maxWords="30" sortable="true" titleKey="article.content"/>
	    <display:column property="date" sortable="true" titleKey="article.date" />
		<display:column property="state" sortable="true" titleKey="article.status" comparator="com.integrationpath.mengine.webapp.comparator.StatusComparator"/>
		<display:column property="preview" sortable="true" titleKey="article.preview" />
	    
	    <display:setProperty name="paging.banner.item_name"><fmt:bundle basename="ApplicationResources"><fmt:message key="articleList.article"/></fmt:bundle></display:setProperty>
	    <display:setProperty name="paging.banner.items_name"><fmt:bundle basename="ApplicationResources"><fmt:message key="articleList.articles"/></fmt:bundle></display:setProperty>
	
	    <display:setProperty name="export.excel.filename"><fmt:bundle basename="ApplicationResources"><fmt:message key="articleList.title"/></fmt:bundle>.xls</display:setProperty>
	    <display:setProperty name="export.csv.filename"><fmt:bundle basename="ApplicationResources"><fmt:message key="articleList.title"/></fmt:bundle>.csv</display:setProperty>
	    <display:setProperty name="export.pdf.filename"><fmt:bundle basename="ApplicationResources"><fmt:message key="articleList.title"/></fmt:bundle>.pdf</display:setProperty>

		<display:setProperty name="basic.empty.showtable" value="true" />
	</display:table>
			
</div>